<template>
  <div>
    <el-button size="mini" type="primary" icon="el-icon-edit" @click="to"/>
    <eForm ref="form" :sup_this="sup_this" :is-add="false"/>
  </div>
</template>
<script>
import eForm from './form'
export default {
  components: { eForm },
  props: {
    data: {
      type: Object,
      required: true
    },
    sup_this: {
      type: Object,
      required: true
    }
  },
  methods: {
    
    to() {
      debugger;
      const _this = this.$refs.form
      _this.form = {
        id: this.data.id,
        typeId: this.data.typeId,
        typeName: this.data.typeName,
        objId:  this.data.objId,
        dataitem:this.data.checkBoxDatas,
        objName: this.data.objName,
        templateName: this.data.templateName,
        templateDesc: this.data.templateDesc
      }
      _this.indexSelect(this.data.typeId)
      _this.dataitem=this.data.checkBoxDatas
      _this.dialog = true
    }
  }
}
</script>

<style scoped>
  div{
    display: inline-block;
    margin-right: 3px;
  }
</style>
